import json
import os


def json_read(file_path):
    # 获取项目根目录
    BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    absolute_path = os.path.join(BASE_DIR, file_path)

    with open(absolute_path, 'r', encoding='utf8') as f:
        data = json.load(f)
    return [tuple(i.values()) for i in data]

if __name__ == '__main__':
    print(json_read('data/dldata.json'))